package chapter_Thread_Hospital;

public class MyThread implements Runnable{
	public void run() {
		Thread.currentThread().setName("特需号：");
		for(int i =1;i<=10;i++) {
			try {
				Thread.sleep(3000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println(Thread.currentThread().getName()+":"+i+"号病人正在看病");
			
		}
	}
}
